import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import checker from 'vite-plugin-checker';
import { resolve } from 'path';
import * as path from "node:path";

// https://vite.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    checker({
      vueTsc: true
    })
  ],
  resolve: {
    // 路径别名
    alias: {
      '@': resolve(__dirname, './src'),
      '~/': `${path.resolve(__dirname, 'src')}/`
    }
  },
})
